package com.kerrykidz.scminvoicing.dao.model;

import java.util.Date;

import com.rdp.framework.core.model.MyBatisSuperModel;
import com.rdp.framework.exception.RDPException;
import com.rdp.util.time.DateFormatUtil;

public class ScmSupEntity  extends MyBatisSuperModel{
	//供应商实体对象属性
    private String pkSupId;
    private String supName;
    private String supInd;
    private String conName;
    private String conTel;
    private String conMobile;
    private String conEmail;
    private String conAddr;
    private String conFax;
    private String deliverAddr;//供货地址
    private String legalRep;
    private String orgCode;
    private String bank;
    private String bankAccount;
    private String comments;
    private String fkBranId;
    private String delFlag;
    private String modiBy;//制单人Id
    private Date modiTime;
    
    //业务字段
    private String branName;//制单单位，及门店名称
    private String supStatus;//与当前供应商合作的状态，是否过期
    private String userName;//制单人名称
    private String orderTime;//制单时间
    //扩展字段
   private Integer passed;//采购订单流程通过数
   private Integer passing;//采购订单流程审批中的数量
   /** 供应商 协议中的 商品 协议单价 **/
   private Double agmPrice;
   
   /** 供应商 协议Id **/
   private String fksupAgmId;
   
	public Integer getPassed() {
	return passed;
}
public void setPassed(Integer passed) {
	this.passed = passed;
}
public Integer getPassing() {
	return passing;
}
public void setPassing(Integer passing) {
	this.passing = passing;
}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	public String getBranName() {
		return branName;
	}
	//得到制单的时间
	public String getOrderTime() throws RDPException {
		orderTime="";
		if(this.getModiTime()!=null){
				orderTime=DateFormatUtil.convertDateToStr(new Date(this.getModiTime().getTime()), "yyyy-MM-dd hh:mm:ss");
		}
		return orderTime;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getSupStatus() {
		return supStatus;
	}
	public void setSupStatus(String supStatus) {
		this.supStatus = supStatus;
	}
	public void setBranName(String branName) {
		this.branName = branName;
	}
	public String getPkSupId() {
		return pkSupId;
	}
	public void setPkSupId(String pkSupId) {
		this.pkSupId = pkSupId;
	}
	public String getSupName() {
		return supName;
	}
	public void setSupName(String supName) {
		this.supName = supName;
	}
	public String getSupInd() {
		return supInd;
	}
	public void setSupInd(String supInd) {
		this.supInd = supInd;
	}
	public String getConName() {
		return conName;
	}
	public void setConName(String conName) {
		this.conName = conName;
	}
	public String getConTel() {
		return conTel;
	}
	public void setConTel(String conTel) {
		this.conTel = conTel;
	}
	public String getConMobile() {
		return conMobile;
	}
	public void setConMobile(String conMobile) {
		this.conMobile = conMobile;
	}
	public String getConEmail() {
		return conEmail;
	}
	public void setConEmail(String conEmail) {
		this.conEmail = conEmail;
	}
	public String getConAddr() {
		return conAddr;
	}
	public void setConAddr(String conAddr) {
		this.conAddr = conAddr;
	}
	public String getConFax() {
		return conFax;
	}
	public void setConFax(String conFax) {
		this.conFax = conFax;
	}
	public String getDeliverAddr() {
		return deliverAddr;
	}
	public void setDeliverAddr(String deliverAddr) {
		this.deliverAddr = deliverAddr;
	}
	public String getLegalRep() {
		return legalRep;
	}
	public void setLegalRep(String legalRep) {
		this.legalRep = legalRep;
	}
	public String getOrgCode() {
		return orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	public String getBank() {
		return bank;
	}
	public void setBank(String bank) {
		this.bank = bank;
	}
	public String getBankAccount() {
		return bankAccount;
	}
	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getFkBranId() {
		return fkBranId;
	}
	public void setFkBranId(String fkBranId) {
		this.fkBranId = fkBranId;
	}
	public String getDelFlag() {
		return delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}
	public String getModiBy() {
		return modiBy;
	}
	public void setModiBy(String modiBy) {
		this.modiBy = modiBy;
	}
	public Date getModiTime() {
		return modiTime;
	}
	public void setModiTime(Date modiTime) {
		this.modiTime = modiTime;
	}
	public Double getAgmPrice() {
		return agmPrice;
	}
	public void setAgmPrice(Double agmPrice) {
		this.agmPrice = agmPrice;
	}
	public String getFksupAgmId() {
		return fksupAgmId;
	}
	public void setFksupAgmId(String fksupAgmId) {
		this.fksupAgmId = fksupAgmId;
	}
    

    
}